# -*- coding: utf-8 -*-#
#-------------------------------------------------------------------------------
# 建立者:        黄周云  
# Name:         demo03
# Description:   构造方法
# Author:       ASUS
# Date:         2019/3/16
#-------------------------------------------------------------------------------

class Animal:
    def __init__(self):
        print("这是构造函数")
    def doprint(self,msg):
        print(msg)

if __name__ == '__main__':
    animal = Animal()
    animal.doprint("hello")



